package com.mzj.saas.mservice.property.entity;

import com.mzj.saas.mservice.sys.entity.IdEntity;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 物业-账单与支付记录关系表
 */
@Entity
@Table(name = "saas_estate_payment_order_relation")
public class EstatePaymentOrderRelation extends IdEntity {
    /**
     * 账单id
     */
    @Basic
    @Column(name = "bill_id", nullable = true)
    private Long billId;

    /**
     * 支付订单编号
     */
    @Basic
    @Column(name = "order_number", nullable = true)
    private String orderNumber;

    /**
     * 业务类型：1交房租 2交水费 3交电费 4交物业费 5交宽带费 6交电视费 7交煤气费 8交暖气费 9押金 10退租 11违约金
     */
    @Basic
    @Column(name = "business_type", nullable = true)
    private Integer businessType;

    /**
     * 账单金额
     */
    @Basic
    @Column(name = "bill_amount", nullable = true)
    private Integer billAmount;

    /**
     * 平台手续费
     */
    @Basic
    @Column(name = "platform_commission_amount", nullable = true)
    private Integer platformCommissionAmount;

    /**
     * 收款商户id
     */
    @Basic
    @Column(name = "merchant_id", nullable = true)
    private Long merchantId;

    public Long getBillId() {
        return billId;
    }

    public void setBillId(Long billId) {
        this.billId = billId;
    }

    public String getOrderNumber() {
        return orderNumber;
    }

    public void setOrderNumber(String orderNumber) {
        this.orderNumber = orderNumber;
    }

    public Integer getBusinessType() {
        return businessType;
    }

    public void setBusinessType(Integer businessType) {
        this.businessType = businessType;
    }

    public Integer getBillAmount() {
        return billAmount;
    }

    public void setBillAmount(Integer billAmount) {
        this.billAmount = billAmount;
    }

    public Integer getPlatformCommissionAmount() {
        return platformCommissionAmount;
    }

    public void setPlatformCommissionAmount(Integer platformCommissionAmount) {
        this.platformCommissionAmount = platformCommissionAmount;
    }

    public Long getMerchantId() {
        return merchantId;
    }

    public void setMerchantId(Long merchantId) {
        this.merchantId = merchantId;
    }
}
